package com.hainingtong.core.service;

import com.hainingtong.core.entity.SysAuth;
import com.hainingtong.core.entity.SysUser;

public interface UserService {
    SysUser findUserById(int userId);
    SysUser register(String nickname, String principal, String credential, String loginType) throws Exception;
    SysAuth findAuthByPrincipalAndType(String principal, String type);
    SysUser findUserByPrincipalAndType(String principal, String type);
}
